package com.test.udp.thread.run;

import com.test.udp.thread.TalkReceive;
import com.test.udp.thread.TalkSend;

/**
 * 使用多线程,实现双向交流
 * <p>
 * 发送端
 *
 * @create: 2019-05-28 23:04
 **/
public class TalkStudent {
    public static void main(String[] args) {
        //发送
        new Thread(new TalkSend(8888, "localhost", 9999)).start();

        //接收
        new Thread(new TalkReceive(6666, "李四")).start();
    }
}
